﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Microsoft.ProductivityHub.SilverlightBookshelf
{
    public partial class VerticalTab : UserControl
    {
        private string _imageSource = "";
        private string _title = "";

        public VerticalTab()
        {
            InitializeComponent();
        }

        public string TabTitle
        {
            get { return _title; }
            
            set 
            { 
                _title = value;
                TabText.Text = _title;
            }

        }
        public string TabImageSource
        {
            get { return _imageSource; }
            set 
            { 
                _imageSource = value;
                System.Windows.Media.Imaging.BitmapImage bmi = new System.Windows.Media.Imaging.BitmapImage(new Uri(_imageSource, UriKind.Relative));
                TabImage.Source = bmi;
            }
        }
    }
}
